import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '@/views/Home.vue'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/api',
        name: 'api',
        component: () => import('@/views/api/ApiIndex.vue')
    },
    {
        path: '/api-multi-config',
        name: 'apiMultiConfig',
        component: () => import('@/views/api-multi-config/ApiMultiConfigIndex.vue')
    },
    {
        path: '/api-system',
        name: 'apiSystem',
        component: () => import('@/views/api-system/ApiSystemIndex.vue')
    },
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router